#include "player.h"

Player::Player(PlayerSide playerSide)
{
	side = playerSide;
}

Player::~Player()
{


}

void Player::LoadTeam(Team &archetype)
{
	team.name = archetype.name;
	for (int i = 0; i < archetype.members.size(); i++)
	{
		//Copy dude template into our team
		team.members.push_back(DudeTemplate());
		team.members.back().baseResourceName = archetype.members.at(i).baseResourceName;
		team.members.back().stats.health = archetype.members.at(i).stats.health;
		team.members.back().stats.speed = archetype.members.at(i).stats.speed;
		team.members.back().stats.offense = archetype.members.at(i).stats.offense;
		team.members.back().stats.defense = archetype.members.at(i).stats.defense;
		team.members.back().stats.range = archetype.members.at(i).stats.range;
		team.members.back().stats.damage = archetype.members.at(i).stats.damage;
	}
}